﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BSCMFF.Core.MembershipDataProvider;

namespace BSCMFF.Web.Pages.Settings
{
    public partial class ChangePassword : BSCMFF.Core.MultiLanguagePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void ChangePasswordSettings_ContinueButtonClick(object sender, EventArgs e)
        {
            Response.Redirect("../UserPages/EmployeeInfo.aspx");
        }

        protected void ChangePasswordSettings_ChangingPassword(object sender, LoginCancelEventArgs e)
        {
            //e.Cancel = true;

            //EntityMembershipDataProvider emdp = new EntityMembershipDataProvider();

            //string loggedUsername = User.Identity.Name;

            //if (emdp.MyChangePassword(loggedUsername, ChangePasswordSettings.CurrentPassword,
            //                                      ChangePasswordSettings.NewPassword,
            //                                      ChangePasswordSettings.ConfirmNewPassword))
            //{
            //    ChangePasswordSettings.
            //}
        }
    }
}